<div id="container" class="clear">
	<div id="left">
		<h2>基本信息修改</h2>
		<form class="pubcode mb20" method="post" action="<?php echo url::site('user/editcode'); ?>">
		<p class="mb10"><input protected type="text" name="title" value="<?php echo $code['title'] ?>" class="w555 p5"/></p>
			<ul class="selectLan mb10 clear">
				<?php foreach($lans as $k=>$lan){ ?>
				<li <?php if($lan==$code['lan']){ ?>class="selected"<?php } ?>><?php echo $lan; ?></li>
				<?php } ?>
			</ul>
			<input type="hidden" name='lan' value='' />
			<p class="moreOptionBtn w545">更多选项</p>
			<div class="moreOption mt10 hide">
				<p class="mb10">
				<label style="float:none;display:block;margin-bottom:5px;color:#444">说明</label>
				<textarea protected class="w555 pt h120 p5" name="intro"><?php echo $code['intro'] ?></textarea>
				</p>
				<p>
				<label style="float:none;display:block;margin-bottom:5px;color:#444">链接</label>
				<input protected type="text" name="link" value="<?php echo $code['link']; ?>" class="w555 p5"/>
				</p>
			</div>
			<input type="hidden" name="code_id" value="<?php echo $code['id']; ?>" />
			<p class="mt10"><input type="submit" value="修改信息" /></p>
		</form>

		<h2>代码修改</h2>
		<form class="pubcode" method="post" action="<?php echo url::site('user/editcode'); ?>">
			<p class="mb10">
			<textarea protected class="w555 pt h260 p5 code" name="snippet"><?php echo $snippet; ?></textarea>
			</p>
			<input type="hidden" name="code_id" value="<?php echo $code['id']; ?>" />
			<p class="mt10"><input type="submit" value="修改代码" /></p>
		</form>
	</div>

</div>
